<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>相对定位</title>
    <style>
        p {
            font: italic 22px "苹方";
        }
        .a {
            background-color: rgba(255, 0, 0, 0.5);
            position: relative;
            top: 100px;
            right: -80px;
            width: 200px;
            height: 200px;
        }
        .b {
            background-color: rgba(0, 255, 0, 0.5);
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
    <p>相对定位是相对他自己原来的位置</p>
    <ul>
        <li>他不会投标</li>
        <li>会占据原来的位置</li>
    </ul>
    <hr>
    <div class="a">
    </div>
    <div class="b"></div>
</body>
</html>